package cn.hill4j.tool.spring.ext.feign;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @author hillchen
 * Description: feign重置url自动装载配置类
 * Date 2023/8/11 00:07
 **/
@Configuration
@ConditionalOnClass(FeignClient.class)
public class FeignUrlResetAutoConfig {
    /**
     * @author hillchen
     * Description: 初始化加载feign url重置处理bean
     * Date: 2023/8/11 00:10
     * @return FeignUrlResetPostProcessor
     **/
    @Bean
    public FeignUrlResetPostProcessor feignUrlResetPostProcessor(){
        return new FeignUrlResetPostProcessor();
    }
}
